package com.library.service;

import java.util.Objects;

import com.library.bean.User;
import com.library.dao.UserDAO;

public class UserService {
	
	UserDAO userDAO = new UserDAO();
	
	public boolean login(String userName,String password) {
		User user = userDAO.selectByNamePwd(userName, password);
		if(Objects.nonNull(user))
			return true;
		return false;
	}

}
